<!-- eslint-disable vue/multi-word-component-names -->
<!-- eslint-disable vue/no-mutating-props -->
<template>
    <labelArea label="数据">
        <el-form size="small" label-suffix=" :">
            <el-descriptions size="small" direction="vertical" class="gapDescriptions">
                <el-descriptions-item label="源" label-align="center" width="150">
                    <el-form-item label="延迟长度" label-width="68px">
                        <el-select disabled>
                            <el-option value="1" />
                        </el-select>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="值">
                    <el-form-item>
                        <el-input v-model="data.DelayLength"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="上限" width="80">
                    <el-form-item>
                        <el-input disabled></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item width="150">
                    <el-form-item label="初始条件" label-width="68px">
                        <el-select disabled>
                            <el-option value="1" />
                        </el-select>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item>
                    <el-form-item>
                        <el-input v-model="data.InitialLength"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item />
            </el-descriptions>
        </el-form>
    </labelArea>
    <labelArea label="算法">
        <el-form size="small" label-suffix=" :">
            <el-form-item label="输入处理" style="width: 75%;">
                <el-select v-model="data.InputProcessing">
                    <el-option value="BaseInSample" />
                </el-select>
            </el-form-item>
            <el-form-item>
                <ctcheckbox v-model="data.UseCircularBuffer">使用环形缓冲区保存状态</ctcheckbox>
            </el-form-item>
            <!-- <el-form-item>
                <ctcheckbox v-model="data.ZeroCross">防止直接馈通</el-checkbox>
            </el-form-item>
            <el-form-item>
                <ctcheckbox v-model="data.ZeroCross">在生成代码中去除延迟长度检查</el-checkbox>
            </el-form-item>
            <el-form-item label="延迟长度的诊断" style="width: 75%;">
                <el-select>
                    <el-option value="1" />
                </el-select>
            </el-form-item> -->
        </el-form>
    </labelArea>
    <labelArea label="控件">
        <el-form size="small" label-suffix=" :">
            <el-form-item>
                <ctcheckbox v-model="data.ShowEnablePort">显示使能端口</ctcheckbox>
            </el-form-item>
            <el-form-item label="外部重置" style="width: 75%;">
                <el-select v-model="data.ExternalReset">
                    <el-option value="Null" label="无" />
                </el-select>
            </el-form-item>
        </el-form>
    </labelArea>
    <el-form size="small" label-position="top" label-suffix=" :">
        <el-form-item label="采样时间（-1 表示继承）">
            <el-input v-model="data.SampleTime"></el-input>
        </el-form-item>
    </el-form>
</template>

<script setup>
const { data } = defineProps(['data'])

</script>


<style scoped></style>